<?php
defined('_JEXEC') or die('Restricted access');

$style = array();
$style[] = '<style type="text/css">';
$style[] = "ul.$class li, table.$class ul li{clear:left;list-style:none;} ";
$style[] = "ul.$class li img{float:left;margin-left:-45px;margin-right:5px}";
$style[] = "ul.$class li ul{margin-top:5px;}";
$style[] = "ul.$class li ul li img{float:left;margin-left:-35px;}";
if($params->get('group')){
	$style[] = "ul.$class li ul li, table.$class ul li ul li{border-bottom:1px dashed #ccc;}";
} else {
	$style[] = "ul.$class li, table.$class ul li{border-bottom:1px dashed #ccc;margin-left:0px}";
}
$style[] = "ul.$class li ul li small{line-height:110%; padding-top:0px}";
$style[] = "ul.$class li a{line-height:120%;}";
$style[] = "ul li {list-style:none}";
$style[] = '</style>';
$style = implode("\n", $style);
if(intval( $params->get('outputstyle') ) == 2){
	echo $style;
} else {
	$mainframe->addCustomHeadtag($style);
}